export function validateResource(url: string) {
  const reg = /\.[^\.]+$/
  const matches = reg.exec(url)

  if (!matches) { return false }

  const ext = matches[0].toLocaleLowerCase()

  return ['.js', '.css'].includes(ext)
}